package day7;

public class Pigeon extends AbstractBird implements IFly {

	@Override
	public void fly() {
		System.out.println("鸽子会飞");
	}
	
	@Override
	public void egg() {
		System.out.println("鸽子会下蛋");
	}
	
	public void message() {
		System.out.println("鸽子会送信");
	}
	public static void main(String[] args) {
		Pigeon pigeon = new Pigeon();
		pigeon.egg();
		pigeon.message();
		
		AbstractBird bird = new Pigeon();
		bird.egg();
		
		IFly fly = new Pigeon();
		fly.fly();
	}

	
}
